print("Example script ss_huimie.lua.");

-- function attack( )
-- 	cast('暗影灼烧', 'target')

-- 	if getDebuffRemainTime('target', '献祭') < 2 then
-- 		cast('献祭', 'target')
-- 	end

-- 	if getBuffRemianTime('player', '爆燃') == 0 then
-- 		cast('燃烧', 'target')
-- 	end
	
-- 	cast('烧尽', 'target')

-- end

-------------------------
local XianJi = CLASS(Spell)
XianJi.name = '献祭'

function XianJi:canCast( )
	return getDebuffRemainTime( 'target', '献祭' ) < 2
end

-------------------------
local RanShao = CLASS(Spell)
RanShao.name = '燃烧'

function RanShao:canCast( )
	return getBuffRemianTime( 'player', '爆燃' ) == 0
end

-------------------------
local CiGu = CLASS(Spell)
CiGu.name = '刺骨'

function CiGu:canCast( )
	return GetComboPoints('player') >= 5
end




local HuiMieSS = CLASS(Scheme)
function HuiMieSS:ctor( )
	self:addSpell(Spell.new('暗影灼烧'))
	self:addSpell(TargetDebuff.new('献祭', '献祭', le, 3))
	self:addSpell(PlayerBuff.new('燃烧', '爆燃', le, 0))
	self:addSpell(Spell.new('烧尽'))

end
schemeMap[93] = HuiMieSS.new()

print('ss_huimie end ....')